package innerclass01;

public class Outer {

    public String name;
    public int age;

    public  class Inner{
         int a=10;
    }

    //通过在内部类创建对象获取内部类的变量
    //适用于内部类被private私有修饰时
    public Inner getInner(){

        return new Inner();
    }
}
